<template>
  <van-row>
      <van-row type="flex"  justify="space-around" class="top-nav">
        <van-button class="top-btn" type="default" icon="search" to="/freetraining">双查找训练</van-button>
        <van-button class="top-btn" type="default" icon="add-o" to="/releasetra">发布训练</van-button>
      </van-row>
      <router-link type="button" class="roll" tag="div" to="/selected">
        <van-col class="left-box" >

        </van-col>
        <van-col class="iconfont my-icon-renwu" >
  <!--        需要接口-->
        </van-col>
        <van-col class="iconfont my-icon-you1111" style="font-size: 24px;float: right"></van-col>
      </router-link>
      <van-row class="weekselect">
          <van-col class="weektop">
            周精选
            <router-link to="/zselected">查看全部<span class="iconfont my-icon-you1111"></span></router-link>
          </van-col>
          <ul class="wt-ul">
              <li class="wt-item">
                <div class="user-info">
                  <img class="photo" src=""><span class="train-user">wwww</span>
                </div>
                <h2 class="train-name">wwwwwww<span class="looks">11111</span></h2>
                <p class="train-plan">6555</p>
                <div class="label-box">
                <div class="train-label">酣畅淋漓</div>
                </div>
              </li>
          </ul>
      </van-row>
      <van-row class="swipe-list">
        <div class="swiper-container swiper2">
          <div class="swiper-wrapper">
            <router-link to="" class="swiper-slide" tag="div"><img src="" ></router-link>
            <router-link to="" class="swiper-slide" tag="div"><img src="" ></router-link>
            <router-link to="" class="swiper-slide" tag="div"><img src="" ></router-link>
            <router-link to="" class="swiper-slide" tag="div"><img src="" ></router-link>
            <router-link to="" class="swiper-slide" tag="div"><img src="" ></router-link>
          </div>
        </div>
      </van-row>
      <van-row class="weekselect">
        <van-col class="weektop">
          热门
          <router-link to="/wselected">查看全部<span class="iconfont my-icon-you1111"></span></router-link>
        </van-col>
        <ul class="wt-ul">
          <li class="wt-item">
            <div class="user-info">
              <img class="photo" src=""><span class="train-user">wwww</span>
            </div>
            <h2 class="train-name">wwwwwww<span class="looks">11111</span></h2>
            <p class="train-plan">6555</p>
            <div class="label-box">
              <div class="train-label">酣畅淋漓</div>
            </div>
          </li>
        </ul>
      </van-row>

  </van-row>
</template>
<script>
  import 'swiper/dist/css/swiper.css'
  import swiper from 'swiper';

  export default {
    name:'square',
    mounted(){
      new swiper('.swiper2', {
        freeModeMomentum : false,
        slidesPerView :'auto',
        spaceBetween: 10,
        freeMode: true,
        pagination: {
          el: '.swiper-pagination',
          clickable: true,
        },
      })
    }
  }


</script>
<style scoped>
  .top-nav{
    padding-top: 16px;padding-bottom: 13px;border-bottom: 9px solid #eee
  }
.top-btn{
  height: 35px;width: 170px;background: #eeeeee;border: 1px solid #bbb;line-height: 35px;
}
  .roll{
    height: 34px;width: 100%;vertical-align: middle;padding-top:13px;border-bottom: 7px solid #eeeeee;
  }
  .left-box{
    height: 22px;width: 29px;border-radius: 0 15px 15px 0;background: #D96565 ;
  }
  .my-icon-renwu{
    font-size: 14px; line-height: 25px; margin-left: 9px;
  }
  .weektop{
    font-size: 14px;width: 100%;padding-top: 16px;padding-bottom: 10px;
  }
  .weektop a{
    font-size: 12px;float: right;color: #101010;
  }
  .weektop a .my-icon-you1111{
    font-size: 20px; vertical-align: middle;
  }
  .weekselect{padding-left: 11px;}
  .weekselect:before,.weekselect:after{content:" ";display:table}
  .weekselect:after{clear:both}
  .wt-ul:before,.wt-ul:after{content:" ";display:table}
  .wt-ul:after{clear:both}
  .wt-item:before,.wt-item:after{content:" ";display:table}
  .wt-item:after{clear:both}
  .weektop:before,.weektop:after{content:" ";display:table}
  .weektop:after{clear:both}
  .wt-ul{height: 100%}
  .wt-item{
    padding:11px 0; border-bottom: 1px solid #eeeeee;
  }
  .user-info{
    padding-bottom: 7px;
  }
  .photo{
    display: inline-block;border-radius: 50%;border: 1px solid #000000;height: 21px;width: 21px;overflow: hidden;
  }
  .train-user{
    font-size: 12px;margin-left: 6px;
  }
  .train-name{
    font-size: 14px;
  }
  .train-plan{font-size: 12px;padding: 3px 0 11px 0}
  .train-label{
    padding: 4px;border: 1px solid #eeeeee;display: inline-block;
  }
  .swipe-list{border-top: 17px solid #eeeeee;border-bottom: 8px solid  #eeeeee;padding: 11px 0}
  .swiper2 .swiper-slide{
    width: 163px!important;
    height: 61px!important;
  }
</style>

